home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / fortran / fv121s.zip / FAT5.DOC < prev    next >
Text File  |  1988-06-08  |  27KB  |  934 lines

  1.         APR 1988                FAT-VIDEO 1.21  WOPEN            Page W-1
  2.  
  3.  
  4.  
  5.         WOPEN(WID,BATTR,TATTR,ULR,ULC,NR,NC,TITLE,WB,WC,WT) - Open a window.
  6.  
  7.  
  8.         Usage:
  9.  
  10.           call wopen(wid,battr,tattr,ulr,ulc,nr,nc,title,wb,wc,wt)
  11.  
  12.           integer*2    wid,battr,tattr,ulr,ulc,nr,nc,wb,wt,wc
  13.           character*80 title
  14.  
  15.           inputs: battr,tattr,ulr,ulc,nr,nc,title,wb,wt,wc
  16.  
  17.           returns: wid
  18.  
  19.           MS-Fortran Large Model
  20.  
  21.         Description:
  22.  
  23.             This routine sets up the window structures, initializes them,
  24.         and opens a window.
  25.  
  26.            Windows do not have to be overlapped, nor must they always be
  27.         deleted in order. If they are overlapped, they  must be deleted
  28.         in reverse order. If some are overlapped and some are not, the
  29.         overlapped windows must be deleted in reverse of how they were
  30.         layered.
  31.  
  32.         wid   = returned by wopen, window id
  33.         battr = input, border attribute, output from setab
  34.         tattr = input, text attribute, output from setab
  35.         ulr   = input, upper left row of window
  36.         ulc   = input, upp left col  f window
  37.         nr    = input, no. of usable rows in window
  38.         nc    = input, no. of usable cols in window
  39.         title = input, null terminated string.
  40.                 example... 'My Window'//char(0)
  41.                 example... 'My Window'C
  42.                 example... 'My Window`'
  43.         wb    = input, no. of border lines 0,1, or 2
  44.         wc    = input, title justification: center = 1
  45.                                             left   = 0
  46.         wt    = input, title pointer: none      = 0
  47.                                       vert line = 1
  48.                                       arrows    = 2
  49.  
  50.         APR 1988                FAT-VIDEO 1.21  WCLOSE          Page W-2
  51.  
  52.  
  53.         WCLOSE(WID) - Close the window.
  54.  
  55.         Usage:
  56.  
  57.           call wclose(wid)
  58.  
  59.           integer*2    wid
  60.  
  61.           inputs: wid
  62.  
  63.           returns: none
  64.  
  65.           MS-Fortran Large Model
  66.  
  67.         Description:
  68.  
  69.            This function closes the window specified by wid and
  70.         deletes it from memory, and then frees the memory allocated
  71.         for this window.
  72.  
  73.  
  74.         APR 1988                FAT-VIDEO 1.21  WPRNAS          Page W-3
  75.  
  76.  
  77.  
  78.         WPRNAS(WID,ATTR,STRING)- Print string in window with attributes
  79.  
  80.         Usage:
  81.  
  82.           call wprnas(wid,attr,string)
  83.  
  84.           integer*2    wid,attr
  85.           character*80 string
  86.  
  87.           inputs: wid,string,attr
  88.  
  89.           returns: none
  90.  
  91.           MS-Fortran Large Model
  92.  
  93.         Description:
  94.  
  95.            This function will print a string in the window specified by
  96.         wid. The string starts printing at the current cursor location
  97.         and does not wrap at the window boundary.  You should call wcrlf()
  98.         to advance to the start of the next line. The string must be null
  99.         terminated, i.e. string=' My Text'//char(0) , or 'My Text`'.
  100.  
  101.            The attribute variable attr does not have to be the same as that
  102.         used to initially define the window.  That's the purpose of it in
  103.         this function.
  104.  
  105.            The string may be defined prior to the call or in-line.
  106.  
  107.         i.e. string=' text '//char(0)
  108.              call wprnas(wid,attr,string)
  109.                 or
  110.              call wprnas(wid,attr,' text `')
  111.  
  112.         All functions requiring a string as input allow this form of call.
  113.  
  114.         See also wprint(), wcrlf(), setnul().
  115.        APR 1988                FAT-Video-1.21  WPRINT          Page W-4
  116.  
  117.  
  118.  
  119.         WPRINT(WID,STRING) - Print string in window
  120.  
  121.         Usage:
  122.  
  123.           call wprint(wid,string)
  124.  
  125.           integer*2    wid
  126.           character*80 string
  127.  
  128.           inputs: wid, string
  129.  
  130.           returns: none
  131.  
  132.           MS-Fortran Large Model
  133.  
  134.         Description:
  135.  
  136.            This function writes the input string to the specified window
  137.         starting at the current cursor location.  This function does handle
  138.         word wrapping at the window boundary, or you should call wcrlf()
  139.         to go to the start of the next line.  The string may be defined
  140.         prior to this call or the string may be defined in the call.
  141.  
  142.            The input string must be formed as a null terminated string.
  143.         See wprnas() or setnul() for more on null terminated strings.
  144.  
  145.         See also wprnas(), wcrlf().
  146.  
  147.  
  148.         APR 1988                FAT-Video-1.21  WCLS            Page W-5
  149.  
  150.  
  151.  
  152.         WCLS(wid) - Clear the window
  153.  
  154.         Usage:
  155.  
  156.           call wcls(wid)
  157.  
  158.           integer*2    wid
  159.  
  160.           inputs: wid
  161.  
  162.           returns: none
  163.  
  164.           MS-Fortran Large Model
  165.  
  166.         Description:
  167.  
  168.            This function performs a clear screen in the window specified
  169.         by wid and then sets the cursor to the home position in the
  170.         window at (1,1).
  171.  
  172.  
  173.         APR 1988                FAT-Video-1.21  WCRX            Page W-6
  174.  
  175.  
  176.  
  177.         WCRX(WID) - Perform a carriage return in a window.
  178.  
  179.         Usage:
  180.  
  181.           call wcrx(wid)
  182.  
  183.           integer*2    wid
  184.  
  185.           inputs: wid
  186.  
  187.           returns: none
  188.  
  189.           MS-Fortran Large Model
  190.  
  191.         Description:
  192.  
  193.            This function performs a carriage return in the window
  194.         specified by wid, effectively moving the cursor to column 1
  195.         in its current row without advancing to the next line.
  196.  
  197.         APR 1988                FAT-Video-1.21  WLFX            Page W-7
  198.  
  199.  
  200.  
  201.         WLFX(WID) - Perform a line feed in the window.
  202.  
  203.         Usage:
  204.  
  205.           call wlfx(wid)
  206.  
  207.           integer*2  wid
  208.  
  209.           inputs: wid
  210.  
  211.           returns: none
  212.  
  213.           MS-Fortran Large Model
  214.  
  215.         Description:
  216.  
  217.            This function performs a line feed in the window
  218.         specified by wid, effectively moving the cursor to the next
  219.         row, but in the same column.
  220.  
  221.  
  222.         APR 1988                FAT-Video-1.21  WCRLF           Page W-8
  223.  
  224.  
  225.         WCRLF(WID)- Perform carriage return, and line feed, in a window.
  226.  
  227.         Usage:
  228.  
  229.           call wcrlf(wid)
  230.  
  231.           integer*2    wid
  232.  
  233.           inputs: wid
  234.  
  235.           returns: none
  236.  
  237.           MS-Fortran Large Model
  238.  
  239.         Description:
  240.  
  241.            This function performs a carriage return and a line feed in
  242.         the window specified by wid, effectively moving the cursor to
  243.         start of the next row in column 1. This is similar to the
  244.         enter key.
  245.  
  246.  
  247.         APR 1988                FAT-Video-1.21  WCLEOL          Page W-9
  248.  
  249.  
  250.  
  251.         WCLEOL(WID)- Clear to end of line, in the window.
  252.  
  253.         Usage:
  254.  
  255.           call wcleol(wid)
  256.  
  257.           integer*2    wid
  258.  
  259.           inputs: wid
  260.  
  261.           returns: none
  262.  
  263.           MS-Fortran Large Model
  264.  
  265.         Description:
  266.  
  267.            This function clears the current line to the window border in
  268.         the window specified by wid.
  269.  
  270.  
  271.  
  272.         APR 1988                FAT-VIDEO 1.21  WGETCP          Page W-10
  273.  
  274.  
  275.  
  276.         WGETCP(WID,ROW,COL) - Get cursor row,col in window.
  277.  
  278.         Usage:
  279.  
  280.           call wgetcp(wid,row,col)
  281.  
  282.           integer*2  wid,row,col
  283.  
  284.           inputs: wid
  285.  
  286.           returns: row,col
  287.  
  288.           MS-Fortran Large Model
  289.  
  290.         Description:
  291.  
  292.            This function returns the cursor coordinates for the window
  293.         specified by wid, in window coordinates. Window rows start at
  294.         row 1,2,3.. columns run col 1,2,3... .
  295.  
  296.  
  297.  
  298.         APR 1988                FAT-VIDEO 1.21  WSETCP          Page W-11
  299.  
  300.  
  301.  
  302.         WSETCP(WID,ROW,COL) - Set cursor to row,col in window.
  303.  
  304.         Usage:
  305.  
  306.           call wsetcp(wid,row,col)
  307.  
  308.           integer*2  wid,row,col
  309.  
  310.           inputs: wid,row,col
  311.  
  312.           returns: none
  313.  
  314.           MS-Fortran Large Model
  315.  
  316.         Description:
  317.  
  318.            This function sets the cursor at row,col for the window
  319.         specified by wid, in window coordinates.  Window rows start
  320.         at row 1,2,3.., columns run col 1,2,3... .
  321.  
  322.  
  323.  
  324.         APR 1988                FAT-VIDEO 1.21  WGETSN